package com.homedo.odin.solution.model.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 方案每日的票数信息表
 * </p>
 *
 * @author HarveyDing
 * @since 2018-03-08
 */
@TableName("activity_poll_daily")
@Getter
@Setter
public class ActivityPollDaily extends Model<ActivityPollDaily> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 方案id
     */
	@TableField("solution_id")
	private Long solutionId;
    /**
     * 方案名称
     */
	@TableField("solution_name")
	private String solutionName;
    /**
     * 方案封面配图
     */
	private String cover;
    /**
     * 参赛人信息
     */
	private String pothunter;
    /**
     * 得票数
     */
	private Integer poll;
    /**
     * 得票日期
     */
	@TableField("poll_date")
	private Date pollDate;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
